package ru.ifmo.thesis.util;

import org.jgap.Configuration;
import org.jgap.IChromosome;
import org.jgap.impl.DefaultConfiguration;

import ru.ifmo.thesis.task.Task;
import ru.ifmo.thesis.task.TaskGenerationOptions;
import ru.ifmo.thesis.task.TaskGenerator;

public class Benchmark {
	public static void main(String[] args) throws Exception {
		Configuration conf = new DefaultConfiguration();
	
		TaskGenerationOptions options = new TaskGenerationOptions();
		options.setGenerateContractsCount(550);
		options.setTaskGenerationCount(100);
		options.setWorkersCount(20);
		
		TaskGenerator generator = new TaskGenerator();
		
		Task generateTask = generator.generateTask();
		
		IChromosome result = Algorithms.createRandomChromosome(conf, generateTask.getWorkers(), generateTask.getJobs());
//		result.increaseAge();
	}
}
